package com.deductive.domain.wq;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 评估参数表
 * @TableName disposition_wq_pgcs
 */
@TableName(value ="disposition_wq_pgcs")
@Data
public class DispositionWqPgcs implements Serializable {
    /**
     * id
     */
    @TableId(value = "id",type= IdType.AUTO)
    private Integer id;

    /**
     * 参数名称
     */
    @TableField(value = "parameter_name")
    private String parameterName;

    /**
     * 参数类别
     */
    @TableField(value = "parameter_category")
    private String parameterCategory;

    /**
     * 参数分值
     */
    @TableField(value = "parameter_score")
    private String parameterScore;

    /**
     * 参数最小值
     */
    @TableField(value = "parameter_min_value")
    private String parameterMinValue;

    /**
     * 参数最大值
     */
    @TableField(value = "parameter_max_value")
    private String parameterMaxValue;

    /**
     * 参数权重
     */
    @TableField(value = "parameter_weights")
    private String parameterWeights;

    /**
     * 关联推演
     */
    @TableField(value = "deduction")
    private String deduction;

    /**
     * 评估方案
     */
    @TableField(value = "evaluation_plan")
    private String evaluationPlan;

    /**
     * 评估分值
     */
    @TableField(value = "evaluation_score")
    private String evaluationScore;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DispositionWqPgcs other = (DispositionWqPgcs) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getParameterName() == null ? other.getParameterName() == null : this.getParameterName().equals(other.getParameterName()))
            && (this.getParameterCategory() == null ? other.getParameterCategory() == null : this.getParameterCategory().equals(other.getParameterCategory()))
            && (this.getParameterScore() == null ? other.getParameterScore() == null : this.getParameterScore().equals(other.getParameterScore()))
            && (this.getParameterMinValue() == null ? other.getParameterMinValue() == null : this.getParameterMinValue().equals(other.getParameterMinValue()))
            && (this.getParameterMaxValue() == null ? other.getParameterMaxValue() == null : this.getParameterMaxValue().equals(other.getParameterMaxValue()))
            && (this.getParameterWeights() == null ? other.getParameterWeights() == null : this.getParameterWeights().equals(other.getParameterWeights()))
            && (this.getDeduction() == null ? other.getDeduction() == null : this.getDeduction().equals(other.getDeduction()))
            && (this.getEvaluationPlan() == null ? other.getEvaluationPlan() == null : this.getEvaluationPlan().equals(other.getEvaluationPlan()))
            && (this.getEvaluationScore() == null ? other.getEvaluationScore() == null : this.getEvaluationScore().equals(other.getEvaluationScore()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getParameterName() == null) ? 0 : getParameterName().hashCode());
        result = prime * result + ((getParameterCategory() == null) ? 0 : getParameterCategory().hashCode());
        result = prime * result + ((getParameterScore() == null) ? 0 : getParameterScore().hashCode());
        result = prime * result + ((getParameterMinValue() == null) ? 0 : getParameterMinValue().hashCode());
        result = prime * result + ((getParameterMaxValue() == null) ? 0 : getParameterMaxValue().hashCode());
        result = prime * result + ((getParameterWeights() == null) ? 0 : getParameterWeights().hashCode());
        result = prime * result + ((getDeduction() == null) ? 0 : getDeduction().hashCode());
        result = prime * result + ((getEvaluationPlan() == null) ? 0 : getEvaluationPlan().hashCode());
        result = prime * result + ((getEvaluationScore() == null) ? 0 : getEvaluationScore().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", parameterName=").append(parameterName);
        sb.append(", parameterCategory=").append(parameterCategory);
        sb.append(", parameterScore=").append(parameterScore);
        sb.append(", parameterMinValue=").append(parameterMinValue);
        sb.append(", parameterMaxValue=").append(parameterMaxValue);
        sb.append(", parameterWeights=").append(parameterWeights);
        sb.append(", deduction=").append(deduction);
        sb.append(", evaluationPlan=").append(evaluationPlan);
        sb.append(", evaluationScore=").append(evaluationScore);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}